<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="table1" cellspacing="1">
	<tr class="li_2">
		<td   colspan="4" class="t_bar2">基本信息</td>
		
	</tr>
	<tr class="li_1">
		<td   align="right" width="20%"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="3">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" class="input_css required"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr class="li_2">
		<td   align="right" width="20%">项目类别：</td>
		<td  colspan="3">
			<x:out select="$xmlData/data/proposal/sub_grant_name" /> 
		</td>
	</tr>
	<tr class="li_1">
		<td   align="right" width="20%"><!-- <span class="color_red">*</span> -->申请金额（万元）：</td>
		<td  colspan="3">
			<span  name="proposal/request_amt" id="request_amt"><x:out select="$xmlData/data/proposal/request_amt" /></span>
			<%-- <input id="request_amt" name="proposal/request_amt" label="申请金额" type="text" 
			class="input_css required "  style="width: 22.5%;text-align: right;" 
			maxlength="100"  onfocus="InitInput.setNumber(this,9,4,2)"
			value="<x:out select="$xmlData/data/proposal/request_amt" />"/> --%>
		</td>
	</tr>
	<tr class="li_2">
		<td   align="right" width="20%"><span class="color_red">*</span>项目实施地点：</td>
		<td  colspan="3">
			<input name="proposal/address" label="项目实施地点" type="text" required class="input_css required"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/address" />"/> 
		</td>
	</tr>
	<tr class="li_1">
	<td align="right"><span class="color_red">*</span>研发形式：</td>
	<td nowrap  colspan="3" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="research" label="独立研发" value="01" /><span style="vertical-align: middle;">独立研发</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="research" label="合作研发" value="02" /><span style="vertical-align: middle;">合作研发</span></label> 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="research" label="引进消化吸收研发" value="03" /><span style="vertical-align: middle;">引进消化吸收研发</span></label>
	<!-- <label> <input type="radio" class="do " id="advant_04" style="vertical-align: middle;" name="research" label="其他" value="04" /><span style="vertical-align: middle;">其他</span></label> -->
	<input type="hidden" name="proposal/research_value" id="research_value" class="required" value="<x:out select="$xmlData/data/proposal/research_value" />" label="研发形式" /> 
	<input type="hidden" name="proposal/research_name" id="research_name" value="<x:out select="$xmlData/data/proposal/research_name" />" label="研发形式" />
	</td>
	</tr>
	<tr class="li_2">
	<td  align="right" nowrap><span class="color_red">*</span>申报领域：</td>
	<td colspan="3">
	       <c:set var="statYear">${statYear}</c:set>
			 <c:if test="${empty statYear}">
			<c:set var="statYear"><x:out select="$xmlData/data/proposal/stat_year" /></c:set>
				</c:if>
			 <c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
			 <%--
			<c:set var="domain_value"><x:out select="$xmlData/data/proposal/domain_value" /></c:set>
			<cpt:checkbox key="grant_domain" name="domain" repeatColumn="4"  sqlParamVal="{'grant_code':'${grantCode}'}"></cpt:checkbox>
			<input type="hidden" name="proposal/domain_value" class="required"  value="${domain_value}" label="申报领域">
			<input type="hidden" name="proposal/domain_name" value="<x:out select="$xmlData/data/proposal/domain_name" />"> --%>
			
			<c:set var="sub"><x:out select="$xmlData/data/proposal/sub_grant_code" /></c:set>
			<c:set var="domain">{'id':'<x:out select="$xmlData/data/proposal/domain_value" />','name':'<x:out select="$xmlData/data/proposal/domain_name" />'}</c:set>
          	<cpt:tree key="domain1" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${domain}"  label="申报领域"
          		id="domain" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue3" sqlParamVal="{grant_code:	${sub},stat_year:${statYear}}"/>
	        <input id="domain_value" type="hidden" name="proposal/domain_value" class="required" label="申报领域" value="<x:out select="$xmlData/data/proposal/domain_value" />"/>
            <input id="domain_name" type="hidden" name="proposal/domain_name"  value="<x:out select="$xmlData/data/proposal/domain_name" />"/>
	</td>
	</tr>
	
	<%-- <tr>
	<td align="right"><span class="color_red">*</span>所属技术领域：</td>
	<td nowrap  colspan="3" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="technology" label="农业种植" value="01" /><span style="vertical-align: middle;">农业种植</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="technology" label="农业养殖" value="02" /><span style="vertical-align: middle;">农业养殖</span></label> 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="technology" label="农业综合" value="03" /><span style="vertical-align: middle;">农业综合</span></label>
	<input type="hidden" name="proposal/technology_value" id="technology_value" class="required" value="<x:out select="$xmlData/data/proposal/technology_value" />" label="所属技术领域" /> 
	<input type="hidden" name="proposal/technology_name" id="technology_name" value="<x:out select="$xmlData/data/proposal/technology_name" />" label="所属技术领域" /></td>
	</tr> --%>
	<%-- <tr>
	<td  align="right" nowrap><span class="color_red">*</span>申报领域：</td>
	<td colspan="3">
			<c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
			<c:set var="domain_value"><x:out select="$xmlData/data/proposal/domain_value" /></c:set>
			<cpt:checkbox key="grant_domain" name="domain" repeatColumn="4"  sqlParamVal="{'grant_code':'${grantCode}'}"></cpt:checkbox>
			<input type="hidden" name="proposal/domain_value"  value="${domain_value}" label="申报领域">
			<input type="hidden" name="proposal/domain_name" value="<x:out select="$xmlData/data/proposal/domain_name" />">
			
			 <c:if test="${grantCode =='108' }">
			<input type="hidden" name="proposal/technosphere_value" id="technosphere_value" value="01" /> 
			<input type="hidden" name="proposal/technosphere_name" id="technosphere_name" value="工业" />
			</c:if>
			<c:if test="${grantCode =='110' }">
			<input type="hidden" name="proposal/technosphere_value" id="technosphere_value" value="02" /> 
			<input type="hidden" name="proposal/technosphere_name" id="technosphere_name" value="农业" />
			</c:if>
			<c:if test="${grantCode =='111' }">
			<input type="hidden" name="proposal/technosphere_value" id="technosphere_value" value="03" /> 
			<input type="hidden" name="proposal/technosphere_name" id="technosphere_name" value="社会发展" />
			</c:if> 
	</td>
	</tr>
	--%>
	<tr class="li_1"> 
	<td align="right" ><span class="color_red">*</span>学科名称：</td>
   <td  colspan="3">
          	<c:set var="subject">{'id':'<x:out select="$xmlData/data/proposal/subject_code" />','name':'<x:out select="$xmlData/data/proposal/subject_name" />'}</c:set>
          	<cpt:tree key="medically" cacheable="false" className="hn_iuput_kuang gray inputWidth1" readonly="true" value="${subject}"  label="学科名称" 
          		id="subject" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="subject_code" type="hidden" name="proposal/subject_code" class="required" label="学科名称" value="<x:out select="$xmlData/data/proposal/subject_code" />"/>
            <input id="subject_name" type="hidden" name="proposal/subject_name"  value="<x:out select="$xmlData/data/proposal/subject_name" />"/>
   </td>
	</tr>
	<tr class="li_2">
		<td align="right"><span class="color_red">*</span>归口管理部门：</td>
		<td colspan="3">
			<c:set var="recomend_org"><x:out select="$xmlData/data/proposal/recomend_org_value" /></c:set>
			<c:set var="sqOrgCode"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/></c:set>
			<cpt:select id="recomend_org" sqlParamVal="{currentorgcode:${sqOrgCode }}"  key="proposal_tjbm"  value="${recomend_org}" onChange="initControlValue(this.id);" style="width: 24.5%;"></cpt:select>
			<input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"  class="required" value="${recomend_org}" label="归口管理部门">
			<input type="hidden" name="proposal/recomend_org_name" value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
		</td>
	</tr>
	<tr class="li_1">
	<td  align="right" nowrap><span class="color_red">*</span>开始日期：</td>
		<td >
			<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
			<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date" label="项目开始日期" ></cpt:date> 
		</td>
		<td  align="right" nowrap><span class="color_red">*</span>结束日期：</td>
		<td>
			<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
			<cpt:date id="end_date" name="proposal/end_date" className="required date" label="项目结束日期"  value="${end_date}" ></cpt:date> 
		</td>
	</tr>
	<tr class="li_2">
	    <td  align="right" nowrap width="20%"><span class="color_red">*</span>申报日期：</td>
		<td colspan="3">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	<tr class="li_1">
		<td   align="right" width="20%" ><span class="color_red">*</span>预期成果形式：</td>
		<td  colspan="3">
		
			 <c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
			<c:set var="exptresult_value"><x:out select="$xmlData/data/proposal/exptresult_value" /></c:set>
			<cpt:checkbox key="exptresult" name="exptresult" repeatColumn="3"   sqlParamVal="{'grant_code':'${grantCode}'}" ></cpt:checkbox>
			<input type="hidden" name="proposal/exptresult_value"  value="${exptresult_value}" label="预期成果形式" class="required">
			<input type="hidden" name="proposal/exptresult_name" value="<x:out select="$xmlData/data/proposal/exptresult_name" />">
		
			<%-- <label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="exptresult" label="1、新产品（或农业新品种）" value="01" /><span style="vertical-align: middle;">1、新产品（或农业新品种）</span></label> 
			<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="exptresult" label="2、新装置" value="02" /><span style="vertical-align: middle;">2、新装置</span></label> 
			<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="exptresult" label="3、新材料" value="03" /><span style="vertical-align: middle;">3、新材料</span></label>
			<label> <input type="radio" class="do " id="advant_04" style="vertical-align: middle;" name="exptresult" label="4、新工艺（新方法、新模式）" value="04" /><span style="vertical-align: middle;">4、新工艺（新方法、新模式）</span></label> 
			<label> <input type="radio" class="do " id="advant_05" style="vertical-align: middle;" name="exptresult" label="5、计算机软件" value="05" /><span style="vertical-align: middle;">5、计算机软件</span></label> 
			<label> <input type="radio" class="do " id="advant_06" style="vertical-align: middle;" name="exptresult" label="6、专利（含发明、实用外型、外观设计）" value="06" /><span style="vertical-align: middle;">6、专利（含发明、实用外型、外观设计）</span></label>
			<label> <input type="radio" class="do " id="advant_07" style="vertical-align: middle;" name="exptresult" label="7、其他（论文、论著、研究报告等）" value="07" /><span style="vertical-align: middle;">7、其他（论文、论著、研究报告等）</span></label>
			<input type="hidden" name="proposal/exptresult_value" id="exptresult_value" class="required" value="<x:out select="$xmlData/data/proposal/exptresult_value" />" label="预期成果形式" /> 
			<input type="hidden" name="proposal/exptresult_name" id="exptresult_name" value="<x:out select="$xmlData/data/proposal/exptresult_name" />" label="预期成果形式" /> --%>
		</td>
	</tr>
	<tr class="li_2">
		<td   align="right" width="20%"><span class="color_red">*</span>预期取得专利：</td>
		<td colspan="3" >
			<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="exptpatent" label="1.国外发明专利" value="01" /><span style="vertical-align: middle;">1.国外发明专利</span></label> 
			<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="exptpatent" label="2.国内发明专利" value="02" /><span style="vertical-align: middle;">2.国内发明专利</span></label> 
			<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="exptpatent" label="3.其他" value="03" /><span style="vertical-align: middle;">3.其他</span></label>
			<input type="hidden" name="proposal/exptpatent_value" id="exptpatent_value" class="required" value="<x:out select="$xmlData/data/proposal/exptpatent_value" />" label="预期取得专利" /> 
			<input type="hidden" name="proposal/exptpatent_name" id="exptpatent_name" value="<x:out select="$xmlData/data/proposal/exptpatent_name" />" label="预期取得专利" /></td>
		</td>
		</tr>
	</table>
	
	<table class="t_css" width="100%" border="0" cellpadding="0" id="table2"	cellspacing="1">
		<tr>
			<td   colspan="4" class="t_bar2">全县（区、市）农民专业合作社情况（金额单位：万元）</td>
		</tr>
		<tr>
			<td   align="right" width="20%"><span class="color_red">*</span>县（区）：</td>
			<td  colspan="3">
				<input id="county" name="cooperative/county" label="县（区）" type="text" 
				 class="input_css required "  style="width: 80%;" 
				 maxlength="100" value="<x:out select="$xmlData/data/cooperative/county" />"/> 
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%"><span class="color_red">*</span>合作社数量：</td>
			<td  >
				<input id="cooperative_count" name="cooperative/cooperative_count" label="合作社数量" type="text" 
				class="input_css required "  
				style="width: 70%;text-align: right;" maxlength="30" 
				onfocus="InitInput.setNumber(this,9,0,0)"
				value="<x:out select="$xmlData/data/cooperative/cooperative_count" />"/>
			</td>
			<td   align="right" width="20%"><span class="color_red">*</span>百强社数量：</td>
			<td  >
				<input id="cooperative_baiqiang" name="cooperative/baiqiang_count" label="百强社数量" type="text" 
				class="input_css required "  style="width: 70%;text-align: right;" 
				maxlength="30" onfocus="InitInput.setNumber(this,9,0,0)"
				value="<x:out select="$xmlData/data/cooperative/baiqiang_count" />"/>
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%" nowrap="nowrap"><span class="color_red">*</span>合作社现有科技人员总数：</td>
			<td  >
				<input id="tech_count" name="cooperative/tech_count" label="合作社现有科技人员总数" type="text" 
				 class="input_css required "  style="width: 70%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/tech_count" />"/>
			</td>
			<td   align="right" width="20%" nowrap="nowrap"><span class="color_red">*</span>合作社现有科技特派员人员总数：</td>
			<td  >
				<input id="special_count" name="cooperative/special_count" label="合作社现有科技特派员人员总数" type="text" 
				 class="input_css required "  style="width: 70%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/special_count" />"/>
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%"><span class="color_red">*</span>是否为省级科技特派示范县：</td>
			<td  >
				<%-- <input id="is_special" name="cooperative/is_special" label="是否为省级科技特派示范县" type="text" required class="input_css required maxlength:100"  style="width: 200px;" maxlength="100" value="<x:out select="$xmlData/data/cooperative/is_special" />"/> --%>
				<c:set var="is_special"><x:out select="$xmlData/data/cooperative/is_special_value" /></c:set>
				<cpt:select id="is_special" key="boolean" name="is_special" onChange="initControlValue(this.id);" value="${is_special }" style="width:75%"></cpt:select>
			   <input type="hidden" name="cooperative/is_special_value" class="required" label="是否为省级科技特派示范县"  value="<x:out select="$xmlData/data/cooperative/is_special_value" />"/>
			   <input type="hidden" name="cooperative/is_special_name" value="<x:out select="$xmlData/data/cooperative/is_special_name" />"/>
			</td>
			<td   align="right" width="20%"><span class="color_red">*</span>科技特派员参与或领办的农民专业合作社总数：</td>
			<td  >
				<input id="participate_count" name="cooperative/participate_count" label="科技特派员参与或领办的农民专业合作社总数" type="text" 
				class="input_css required "  style="width: 70%;text-align: right;" maxlength="30" 
				onfocus="InitInput.setNumber(this,9,0,0)"
				value="<x:out select="$xmlData/data/cooperative/participate_count" />"/>
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%"><span class="color_red">*</span>主导（特色）产业：</td>
			<td  >
				<input id="special_industry" name="cooperative/special_industry" label="主导（特色）产业" 
				type="text"  class="input_css required "  style="width: 70%;" 
				maxlength="150" value="<x:out select="$xmlData/data/cooperative/special_industry" />"/>
			</td>
			<td   align="right" width="20%"><span class="color_red">*</span>主导（特色）产业产值：</td>
			<td  >
				<input id="industry_value" name="cooperative/industry_value" label="主导（特色）产业产值" 
				type="text" class="input_css required maxlength:30"  style="width: 70%;text-align: right;" 
				onfocus="InitInput.setNumber(this,7,4,2)"
				maxlength="30" value="<x:out select="$xmlData/data/cooperative/industry_value" />"/>
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%"><span class="color_red">*</span>主导（特色）农产品产量：</td>
			<td  >
				<input id="industry_count" name="cooperative/industry_count" label="主导（特色）农产品产量" type="text" 
				 class="input_css required "  style="width: 70%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/industry_count" />"/>万吨

			</td>
			<td   align="right" width="20%"><span class="color_red">*</span>年产值达500万元合作社数量：</td>
			<td  >
				<input id="coop_count" name="cooperative/coop_count" label="年产值达500万元合作社数量" type="text" 
				 class="input_css required "  style="width: 70%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/coop_count" />"/>
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%"><span class="color_red">*</span>合作社就业人数：</td>
			<td  >
				<input id="employment" name="cooperative/employment" label="合作社就业人数" type="text" 
				class="input_css required "  style="width: 70%;text-align: right;" maxlength="30" 
				onfocus="InitInput.setNumber(this,9,0,0)"
				value="<x:out select="$xmlData/data/cooperative/employment" />"/>
			</td>
			<td   align="right" width="20%"><span class="color_red">*</span>合作社人均收入：</td>
			<td  >
				<input id="income" name="cooperative/income" label="合作社人均收入" type="text" 
				 class="input_css required "  style="width: 70%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,7,4,2)"
				 value="<x:out select="$xmlData/data/cooperative/income" />"/>
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%"><span class="color_red">*</span>科特派创业链数量：</td>
			<td colspan="3">
			省级：
				<input id="shengji_count" name="cooperative/shengji_count" label="科特派创业链数量（省级）" type="text" 
				 class="input_css required"  style="width: 15%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/shengji_count" />"/>
				&nbsp;&nbsp;&nbsp;
			市级：
				<input id="shiji_count" name="cooperative/shiji_count" label="科特派创业链数量（市级）" type="text" 
				 class="input_css required"  style="width: 15%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/shiji_count" />"/>
				 	&nbsp;&nbsp;&nbsp;
			县级：
				<input id="xianji_count" name="cooperative/xianji_count" label="科特派创业链数量（县级）" type="text" 
				 class="input_css required "  style="width: 15%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/xianji_count" />"/>
		</tr>
		<%-- <tr>
			<td >
				<input id="shengji_count" name="cooperative/shengji_count" label="科特派创业链数量（省级）" type="text" 
				 class="input_css required"  style="width: 70%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/shengji_count" />"/>
			</td>
			<td>
				<input id="shiji_count" name="cooperative/shiji_count" label="科特派创业链数量（市级）" type="text" 
				 class="input_css required"  style="width: 90%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/shiji_count" />"/>
			</td>
			<td >
				<input id="xianji_count" name="cooperative/xianji_count" label="科特派创业链数量（县级）" type="text" 
				 class="input_css required "  style="width: 70%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/xianji_count" />"/>
			</td>
			
		</tr> --%>
		<tr>
			<td   align="right" width="20%"><span class="color_red">*</span>是否成立领导机构：</td>
			<td  >
				<%-- <input id="is_setup" name="cooperative/is_setup" label="是否成立领导机构" type="text" required class="input_css required maxlength:100"  style="width: 200px;" maxlength="100" value="<x:out select="$xmlData/data/cooperative/is_setup" />"/> --%>
				<c:set var="is_setup"><x:out select="$xmlData/data/cooperative/is_setup_value" /></c:set>
				<cpt:select id="is_setup" key="boolean" name="is_setup" onChange="initControlValue(this.id);" value="${is_setup }" style="width:75%"></cpt:select>
			   <input type="hidden" name="cooperative/is_setup_value" class="required" label="是否成立领导机构"  value="<x:out select="$xmlData/data/cooperative/is_setup_value" />"/>
			   <input type="hidden" name="cooperative/is_setup_name" value="<x:out select="$xmlData/data/cooperative/is_setup_name" />"/>
			</td>
			<td   align="right" width="20%"><span class="color_red">*</span>县（区）支持经费额：</td>
			<td  >
				<input id="fund" name="cooperative/fund" label="县（区）支持经费额" type="text" 
				 class="input_css required "  style="width: 70%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,7,4,2)"
				 value="<x:out select="$xmlData/data/cooperative/fund" />"/>
			</td>
		</tr>
		<tr>
			<td   align="right" width="20%"><span class="color_red">*</span>县科技特派员人数：</td>
			<td  >
				<input id="xian_specila" name="cooperative/xian_special" label="县科技特派员人数" type="text" 
				 class="input_css required "  style="width: 70%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/xian_special" />"/>
			</td>
			<td   align="right" width="20%"><span class="color_red">*</span>服务农户数：</td>
			<td  >
				<input id="service_count" name="cooperative/service_count" label="服务农户数" type="text" 
				 class="input_css required "  style="width: 70%;text-align: right;" maxlength="30" 
				 onfocus="InitInput.setNumber(this,9,0,0)"
				 value="<x:out select="$xmlData/data/cooperative/service_count" />"/>
			</td>
		</tr>
	</table>
 <jsp:include page="../org/prporg_hzdw.jsp">
		<jsp:param value="${param.xmlstr}" name="xmlstr" />
	</jsp:include>
	<%-- <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org1">
	<tr>
		<td class="t_bar2" colspan="4">合作单位信息</td>
	</tr>
	<tr>
		<td class="t_bar2" colspan="4">合作单位信息1</td>
	</tr>
	<tr>
		<td align="right" width="20%"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name1" label="合作单位信息1-->单位名称" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name1" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address1" label="合作单位信息1-->单位地址" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address1" />"/>
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name1" label="合作单位信息1-->联系人" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name1" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel1" label="合作单位信息1-->电话" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel1" />"/></td>
	</tr> 
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org2">
<tr>
		<td    class="t_bar2" colspan="4">合作单位信息2</td>
	</tr>
	<tr>
		<td align="right" width="20%"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name2" label="合作单位信息2-->单位名称" type="text" required class="input_css " onchange="cydw('org2');"  style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name2" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address2" label="合作单位信息2-->单位地址" type="text" required class="input_css " onchange="cydw('org2');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address2" />"/>
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name2" label="合作单位信息2-->联系人" type="text"  class="input_css "  onchange="cydw('org2');" maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name2" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel2" label="合作单位信息2-->电话" type="text"  class="input_css " onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel2" />"/></td>
	</tr>
</table> --%>
 <table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="table10">
<tr>
		<td    class="t_bar2" colspan="8">人员信息</td>
	</tr>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input size="12"  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11"  class="input_css required mobile"    value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="100" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		
		   <c:set var="psn_code"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
				<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
					<span id="personSelect">
					<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
					<cpt:personSelect key="personSelect" addRole="3" psnCode="${psnCode }" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
					</span>
				</security:authorize>
		</td>
		<%-- <td  align="right">联系电话：</td>
		<td  >
		<!-- 
			<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
			data/proposal/fzr_tel,data/proposal/fzr_mobile
			 -->
			 <c:set var="tel"><x:out select="$xmlData/data/proposal/fzr_tel"/></c:set>
			 <c:if test="${tel!='' }">
			 		<input  name="proposal/fzr_tel" label="联系电话" type="text" required class="required" style="width: 90%;"  maxlength="11" value="<x:out select="$xmlData/data/proposal/fzr_tel"/>"/> 
			 </c:if>
			 <c:if test="${tel=='' }">
			 <input  name="proposal/fzr_tel" label="联系电话" type="text" required class="required" style="width: 90%;"  maxlength="11" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/> 
			 </c:if>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
<!-- 
			<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
			 -->
			<c:set var="mobile"><x:out select="$xmlData/data/proposal/fzr_mobile"/></c:set>
			 <c:if test="${tel!='' }">
			 <input  name="proposal/fzr_mobile" label="联系手机" type="text" required class="required" style="width: 90%;"  maxlength="11" value="<x:out select="$xmlData/data/proposal/fzr_mobile"/>"/> 
			 </c:if>
			  <c:if test="${tel=='' }">
			 <input  name="proposal/fzr_mobile" label="联系手机" type="text" required class="required" style="width: 90%;"  maxlength="11" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/> 
			 </c:if>

		</td> --%>
		
		
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL">
		<!-- 直接读取申报人信息 -->
		<td  align="right">联系电话：</td>
		<td  >
			<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		
		<td  align="right">联系手机：</td>
		<td>
			<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<!-- 
			<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
			data/proposal/fzr_tel,data/proposal/fzr_mobile
			 -->
			 <c:set var="tel"><x:out select="$xmlData/data/proposal/fzr_tel"/></c:set>
			 <c:if test="${tel!='' }">
			 		<input  name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/proposal/fzr_tel"/>"/> 
			 </c:if>
			 <c:if test="${tel=='' }">
			 <input  name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required class="input_css required"   maxlength="50" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/> 
			 </c:if>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<!-- 
			<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
			<c:if test="${sessionScope.userState.selectRole.roleId==3}"></c:if>
			 -->
			<c:set var="mobile"><x:out select="$xmlData/data/proposal/fzr_mobile"/></c:set>
			 <c:if test="${mobile!='' }">
			 <input  name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" required class="input_css required"   maxlength="11" value="<x:out select="$xmlData/data/proposal/fzr_mobile"/>"/> 
			 </c:if>
			  <c:if test="${mobile=='' }">
			 <input  name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" required class="input_css required"  maxlength="11" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/> 
			 </c:if>
		</td>
		</security:authorize>
		
		
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr> 
</table> 
<script type="text/javascript">

function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

function setProjectPlace(op){
	var address = $("#address_value").val();
	if(op) address = '${address}';
	$("#address_name_other").removeClass("required");
	if(address == '02'){
		$("#address_name_other_span").show();
		$("#address_name_other").css("display","");
		$("#address_name_other").addClass("required");
	}else{
		$("#address_name_other_span").hide();
		$("#address_name_other").removeClass("required");
		$("#address_name_other").val("");
	}
}
function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}
function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}

//选择项目负责人回调
function selectPsnCall(data) {
	$(parent.document).find("input[name$='psn_code']").val(data.person.psnCode);
	$("span[name='proposal/fzr_psnname']").text(data.person.zhName);
	
	$("input[name='proposal/fzr_tel']").val(data.person.tel);
	$("span[name='proposal/fzr_mail']").text(data.personExtend.contact.email);
	$("input[name='proposal/fzr_mobile']").val(data.personExtend.contact.mobile);
	
	tb_remove2();
}

</script>

